package com.xinqi.modules.prepare.data.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.prepare.data.domain.PrepareDataEntity;
import com.xinqi.modules.prepare.data.dto.req.PrepareDataQueryDTO;
import com.xinqi.modules.prepare.data.dto.rsp.PrepareDataResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 备课区资料数据层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper
public interface PrepareDataMapper extends SuperMapper<PrepareDataEntity> {
    Page<PrepareDataResultDTO> findPage(Page<Object> page, @Param("dto") PrepareDataQueryDTO query);

    List<PrepareDataResultDTO> findList(@Param("dto") PrepareDataQueryDTO query);

    int restoreById(@Param("id") Long id);
}
